    package org.kealinghornets.nxtdroid;

    import org.kealinghornets.nxtdroid.NXT.NXTThread;
    import org.kealinghornets.nxtdroid.NXT.TouchSensor;

    /**
     * Created by jychuah on 11/3/13.
     */
    public class MyNXTThread extends NXTThread {

        public MyNXTThread() {
            setNXTThreadName("Offense");
        }

        public void run() {
            runMotor(PORT_A);
            runMotor(PORT_B);
            wait(2000);
            stopMotor(PORT_A);
            stopMotor(PORT_B);
            wait(500);
            runMotor(PORT_A, 100);
            runMotor(PORT_B, -100);
            wait(500);
            stopMotor(PORT_A);
            stopMotor(PORT_B);
            runMotor(PORT_A);
            runMotor(PORT_B);
            wait(1000);
            stopMotor(PORT_A);
            stopMotor(PORT_B);
            reset();



        }
    }
